Call Management
Get All Batches
Retrieve a paginated list of all batches for an authenticated user with search capabilities.
GET
Documentation Index
Fetch the complete documentation index at: https://docs.weya.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This endpoint lists every batch created by the authenticated user with pagination and search support. Only non-deleted batches are returned by default. Use this to monitor active campaigns, view batch summaries, and track campaign statistics.Prerequisites
- Bearer token for an authenticated user.
- The user must own the batches being retrieved.
Request
Bearer token for the authenticated user.
User identifier. The authenticated user must match this ID.
Page number for pagination.
Number of batches to return per page (default: 10).
Search term to filter batches by
batchName or queue_status.Response
Contains the batches array and pagination metadata.
Array of batch records with summary statistics.
Unique identifier for the batch.
Display name for the batch.
Total number of calls in the batch.
Number of calls that were picked up/answered.
Number of calls that completed successfully.
Current status of the batch queue (e.g., “active”, “paused”, “completed”).
Timestamp when the batch was created (ISO 8601 format).
Timestamp when the batch was last updated (ISO 8601 format).
Pagination metadata.
Total number of batches matching the search criteria.
Current page number.
Number of records per page.
Total number of pages available.
Error Handling
- 400 Bad Request – Invalid
userIdformat or invalid query parameters. - 404 Not Found – No batches found for the authenticated user.
- 500 Internal Server Error – Failed to fetch batch data; retry or contact support.
Filtering Behavior:
- Only non-deleted batches are returned (
isDeleted: false) - Use the
searchparameter to filter by batch name or queue status - Results are sorted by creation date in descending order (newest first)
- Pagination helps manage large lists of batches efficiently

